home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 8 / 008.d81 / vic tip < prev    next >
Text File  |  2022-08-26  |  1KB  |  59 lines

  1.  
  2.           *** VIC TIP ***
  3.  
  4.           by Jimmy Weiler
  5.  
  6.  
  7.  
  8.   Because the VIC chip is a complex
  9.  
  10. machine, it is a good idea to clear
  11.  
  12. it before your program starts to work
  13.  
  14. with it.  However, you can't just
  15.  
  16. poke zeros from 53248 to 53294.  Your
  17.  
  18. screen would go completely blank.
  19.  
  20. We suggest a subroutine like this to
  21.  
  22. clear VIC:
  23.  
  24. 50000 V=53248
  25. 50010 FOR C1 = 1 TO 16
  26. 50020 POKE V + C1, 0
  27. 50030 NEXT
  28. 50040 POKE V + 17, 27
  29. 50050 POKE V + 21, 0
  30. 50060 POKE V + 22, 200
  31. 50070 POKE V + 23, 0
  32. 50080 POKE V + 24, 21
  33. 50090 POKE V + 26, 240
  34. 50100 FOR C1 = 27 TO 46
  35. 50110 POKE V + C1, 0
  36. 50120 NEXT
  37. 50130 FOR C1 = 2040 to 2047
  38. 50140 POKE C1, 13
  39. 50150 NEXT
  40. 50160 POKE 646, 14
  41. 50170 REM     ** PUT A RETURN HERE **
  42. 50180 REM     ** IF YOU USE THIS   **
  43. 50190 REM     ** AS A SUBROUTINE.  **
  44.  
  45.  
  46.   Except for the colors, this
  47.  
  48. affects VIC just about like pressing
  49.  
  50. RUN/STOP-RESTORE.
  51.  
  52.  
  53. >For those of you who don't like to
  54.  type much, this program is on SIDE 2
  55.  of LOADSTAR #8.  It is saved under
  56.  the name of VIC INITIALIZE.
  57.  
  58. ---------- End of Article ------------
  59.